package com.treasure.mall.zbqmallapi.mapstruct;

import com.treasure.mall.biz.entity.community.CommunityArticlePO;
import com.treasure.mall.biz.entity.community.CommunityCommentPO;
import com.treasure.mall.biz.entity.user.UserPO;
import com.treasure.mall.zbqmallapi.vo.community.CommentsVO;
import com.treasure.mall.zbqmallapi.vo.community.CommunityArticleDetailVO;
import com.treasure.mall.zbqmallapi.vo.community.CommunityArticleVO;
import com.treasure.mall.zbqmallapi.vo.community.MyCommunityArticleVO;
import com.treasure.mall.zbqmallapi.vo.user.UserBaseVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 *
 * <p>
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.zbqmallapi.mapstruct
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/7/28 10:10 上午
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 *
 */
@Mapper
public interface CommunityMapStruct {
    CommunityMapStruct Instance = Mappers.getMapper(CommunityMapStruct.class);

    UserBaseVO userPo2vo(UserPO po);

    CommentsVO commentsPo2vo(CommunityCommentPO po);

    List<CommentsVO> commentsPos2vos(List<CommunityCommentPO> pos);


//    CommunityArticleVO communityArticlePo2vo(CommunityArticlePO po);


    CommunityArticleDetailVO communityArticleDetailPo2vo(CommunityArticlePO po);


    List<CommunityArticleVO> communityArticlePos2vos(List<CommunityArticlePO> pos);

    List<MyCommunityArticleVO> myCommunityArticlePos2vos(List<CommunityArticlePO> pos);


}
